<?php /*a:1:{s:65:"D:\phpStudy\WWW\tp5\application\admin\view\admin\admin_index.html";i:1551101855;}*/ ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>广州商学院lms-后台管理</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>

    <link rel="shortcut icon" href="/favicon.ico" type="/static/image/x-icon"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script type="text/javascript" src="/static/js/jquery.js"></script>
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>

</head>
<body>
<!-- 顶部开始 -->
<div class="container">
    <div class="logo"><a href="./index.html">广商lms-后台管理</a></div>
    <div class="left_open">
        <i title="展开左侧栏" class="iconfont">&#xe699;</i>
    </div>

    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a href="javascript:;">
                <?php echo htmlentities(app('session')->get('admin.username')); ?>
                <?php echo htmlentities(app('session')->get('teacher.realname')); ?>
            </a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <?php if(app('session')->get('teacher')): ?>
                <dd><a onclick="teacher_change()">个人信息</a></dd>
                <?php endif; ?>
                <dd><a onclick="change_password()">修改密码</a></dd>
                <dd><a href="<?php echo url('admin_logout'); ?>">退出</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item to-index"><a href="/">前台首页</a></li>
    </ul>

</div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe6b8;</i>
                    <cite>学生管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="<?php echo url('admin_user/user_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>学生列表</cite>
                        </a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe6c7;</i>
                    <cite>教师管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="<?php echo url('admin_teacher/teacher_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>教师列表</cite>
                        </a>
                    </li>
                </ul>
            </li>
            <?php if(app('session')->get('admin')): if(app('session')->get('admin.role') == '1'): ?>
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe726;</i>
                    <cite>管理员管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="<?php echo url('admin_manage/admin_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>管理员列表</cite>
                        </a>
                    </li>
                </ul>
            </li>
            <?php endif; ?>
            <?php endif; ?>
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe6d7;</i>
                    <cite>课室管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="<?php echo url('admin_lab/lab_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>课室列表</cite>
                        </a>
                    </li>
                    <?php if(app('session')->get('teacher')): ?>
                    <li>
                        <a _href="<?php echo url('admin_lab/lab_teacher_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>我的课室</cite>
                        </a>
                    </li>
                    <?php endif; ?>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe6ae;</i>
                    <cite>器具管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="<?php echo url('admin_tool/tool_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>器具列表</cite>
                        </a>
                    </li>
                    <?php if(app('session')->get('teacher')): ?>
                    <li>
                        <a _href="<?php echo url('admin_tool/tool_teacher_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>我的器具</cite>
                        </a>
                    </li>
                    <?php endif; ?>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe6b4;</i>
                    <cite>预约管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <?php if(app('session')->get('admin')): ?>
                <ul class="sub-menu">
                    <li>
                        <a _href="<?php echo url('admin_lab_app/admin_now_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>当前预约情况</cite>
                        </a>
                    </li>
                    <li>
                        <a _href="<?php echo url('admin_lab_app/admin_history_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>历史预约情况</cite>
                        </a>
                    </li>
                    <li>
                        <a _href="<?php echo url('admin_tool_app/tool_app_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>器具进行预约情况</cite>
                        </a>
                    </li>
                    <li>
                        <a _href="<?php echo url('admin_tool_app/tool_history_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>器具完成预约情况</cite>
                        </a>
                    </li>
                </ul>
                <?php else: ?>
                <ul class="sub-menu">
                    <li>
                        <a _href="<?php echo url('admin_lab_app/teacher_now_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>当前预约情况</cite>
                        </a>
                    </li>
                    <li>
                        <a _href="<?php echo url('admin_lab_app/teacher_history_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>历史预约情况</cite>
                        </a>
                    </li>
                    <li>
                        <a _href="<?php echo url('admin_tool_app/tool_teacher_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>器具进行预约情况(教师)</cite>
                        </a>
                    </li>
                    <li>
                        <a _href="<?php echo url('admin_tool_app/tool_teacher_history_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>器具完成预约情况(教师)</cite>
                        </a>
                    </li>
                </ul>
                <?php endif; ?>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe723;</i>
                    <cite>公告管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="<?php echo url('admin_notice/notice_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>公告列表</cite>
                        </a>
                    </li>
                    <li>
                        <a _href="<?php echo url('admin_notice/notice_add'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>上传公告</cite>
                        </a>
                    </li>
                </ul>
            </li>


            <?php if(app('session')->get('admin')): ?>
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe6ce;</i>
                    <cite>反馈管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="<?php echo url('admin_feedback/feedback_list'); ?>">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>反馈列表</cite>
                        </a>
                    </li>
                </ul>
            </li>
            <?php endif; ?>

        </ul>
    </div>
</div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li class="home"><i class="layui-icon">&#xe68e;</i>我的桌面</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src="<?php echo url('admin_welcome'); ?>" frameborder="0" scrolling="yes" class="x-iframe"></iframe>
            </div>
        </div>
    </div>
</div>
<div class="page-content-bg"></div>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->
<!-- 底部开始 -->
<div class="footer">
    <div class="copyright">Copyright ©2019 x-admin v2.3 All Rights Reserved</div>
</div>
</body>
<script>
    function teacher_change() {
        layer.open({
            type: 2,
            title: '教师信息',
            maxmin: true,
            shadeClose: true, //点击遮罩关闭层
            area : ['500px' , '520px'],
            content: '<?php echo url('teacher_change'); ?>'
        });
    }
    function change_password() {
        layer.open({
            type:2,
            title:'修改密码',
            maxmin: true,
            area : ['500px' , '320px'],
            content: '<?php echo url('change_password'); ?>'
        })
    }
</script>
</html>